package com.tyk.bookstore.back.task.model.query;

import com.tyk.bookstore.back.common.core.model.page.PageQuery;
import com.tyk.bookstore.back.task.model.enume.TaskState;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author tyk
 * @description 定时任务
 */
@Data
@Schema(name = "TaskPageQuery", description = "定时任务")
public class TaskPageQuery extends PageQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "关键词")
    private String keyword;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "模块")
    private String module;

    @Schema(description = "方法")
    private String method;

    @Schema(description = "Cron表达式")
    private String cron;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "状态[0关闭,1开启]")
    private TaskState state;

    @Schema(description = "创建时间：起始")
    private LocalDateTime createTimeFrom;

    @Schema(description = "创建时间：终止")
    private LocalDateTime createTimeTo;

    @Schema(description = "更新时间：起始")
    private LocalDateTime updateTimeFrom;

    @Schema(description = "更新时间：终止")
    private LocalDateTime updateTimeTo;

}
